<html>
<body>
<div id="header" id="title">
<p style="font-family: Times New Roman, serif; font-size: 45pt; padding-top: 17px;">
Listing Outlet Statuses
</p>
</div>

<div id="main">
<table style="padding-left: 175px;">
  <tr>
<!-- Commented out because we did not use it.
    <th>Log |</th>
-->
    <th>Area |</th>
    <th>Outlet |</th>
    <th>Priority |</th>
    <th>Status</th>
    <th></th>
    <th></th>
  </tr>

<% @outlet_statuses.each do |outlet_status| %>
  <tr>
<!--
    <td><%= outlet_status.log_id %></td>
-->
    <td><%= outlet_status.device_name %></td>
    <td><%= outlet_status.outlet_id %></td>
    <td><%= outlet_status.priority %></td>
    <td><%= if outlet_status.status == true
    	'ON '
    elsif outlet_status.status == false
    	'OFF'
    end %></td>
    <td><%= link_to 'Show', outlet_status %></td>
    <td><%= link_to 'Edit', edit_outlet_status_path(outlet_status) %></td>
    <td><%= link_to 'Destroy', outlet_status, confirm: 'Are you sure?', method: :delete %></td>
  </tr>
<% end %>
</table>

<br />
</div>

<div id="footer">
<%= link_to 'New Outlet Status', new_outlet_status_path %><br /><br />
<p>
<%= link_to 'User Settings', user_settings_path %>
<%= link_to 'Utility Settings', utility_settings_path %>
Outlet Statuses
</p>
</div>
</body>
</html>
